﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Twinkle
{
    public static class MassiveDataExtends
    {
        public static T[] MassiveToArray<T>(this IEnumerable<T> list)
        {
            var t = new T[list.Count()];
            int c = 0;
            foreach (var i in list)
            {
                if (c >= t.Length) break;
                t[c] = i;
                c++;
            }
            return t;
        }
    }
}
